const Sequelize = require('./db');
const { syncAdmin } = require("../tools/syncAdmin");
const { syncModel } = require('../tools/syncModel')
require('./UserInfo')
require('./SearchInfo');
require('./logInfo');
require('./Model')
Sequelize.sync({alter:true}).then((res)=>{
     console.log('-----------------Synchronization succeeded!-------------------')
     syncAdmin();
     syncModel();
}).catch(err=>{
     console.log('err',err)
})